package com.mathlearning.auth.dto.discussion;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.util.List;

@Data
public class CreateDiscussionRequest {
    @NotBlank(message = "标题不能为空")
    @Size(min = 5, max = 100, message = "标题长度必须在5-100个字符之间")
    private String title;

    @NotBlank(message = "内容不能为空")
    @Size(min = 10, message = "内容至少10个字符")
    private String content;

    @Size(max = 5, message = "标签最多5个")
    private List<String> tags;
}








